package com.bloveoacom.weichi.contract;



import com.bloveoacom.http.HttpResult;
import com.bloveoacom.mvp.BaseListPresenter;
import com.bloveoacom.mvp.IListView;
import com.bloveoacom.mvp.IModel;
import com.bloveoacom.weichi.bean.CommentBean;
import com.bloveoacom.weichi.bean.RewardBean;

import java.util.List;

import io.reactivex.Flowable;

/**
 * author: zhu.px
 * e-mail: 1271901673@qq.com
 * time  : 2018/8/22
 * desc  : 我的
 */
public interface AllCommentContract {

    //页面V
    interface View extends IListView {
        //评论结果
        void comment(RewardBean bean);
        //评论列表结果
        void commentList(CommentBean bean);
        String getNewsId();
    }

    //数据M
    interface Model extends IModel {
        Flowable<HttpResult<CommentBean>> getCommentAllList(int pageNum, int pageSize, String coinId);
        Flowable<HttpResult<RewardBean>> comment(
                String coinId,
                String replyCommentId,
                String replyUserId,
                String type,
                String content,
                String sign);
        Flowable<HttpResult<Object>> findTimeStamp();
        Flowable<HttpResult<Object>> fenpeiEmt(String coinId,String overType);

    }

    //交互P
    abstract class Presenter extends BaseListPresenter<View, Model> {
        public abstract void comment(
                String replyCommentId,
                String replyUserId,
                String type,
                String content,
                String sign);
        public abstract void fenpeiEmt(String overType);
    }
}
